import { BaseCommand } from '@amcax/base';
import {
  renderAllEdge,
  renderHiddenEdge,
  renderNoEdge,
  renderPhysicalMaterial,
  renderWireframe,
} from '@app-cad/common/components/switch-renderMode';

export const cmdRenderAllEdge: BaseCommand = {
  id: 'CmdRenderAllEdge',
  label: 'command.renderMode-allEdge',
  icon: 'commands/common/coloring-with-edges',
  invoke: renderAllEdge,
  noHighlight: true,
  standalone: true,
};

export const cmdRenderHiddenEdge: BaseCommand = {
  id: 'CmdRenderHiddenEdge',
  label: 'command.renderMode-hiddenEdge',
  icon: 'commands/common/coloring-with-hidden-edges',
  invoke: renderHiddenEdge,
  noHighlight: true,
  standalone: true,
};

export const cmdRenderNoEdge: BaseCommand = {
  id: 'CmdRenderNoEdge',
  label: 'command.renderMode-noEdge',
  icon: 'commands/common/coloring-without-edges',
  invoke: renderNoEdge,
  noHighlight: true,
  standalone: true,
};

export const cmdRenderWireframe: BaseCommand = {
  id: 'CmdRenderWireframe',
  label: 'command.renderMode-wireframe',
  icon: 'commands/common/edges',
  invoke: renderWireframe,
  noHighlight: true,
  standalone: true,
};

export const cmdRenderPhysicalMaterial: BaseCommand = {
  id: 'CmdRenderPhysicalMaterial',
  label: 'command.renderMode-physicalMaterial',
  icon: 'commands/common/material',
  invoke: renderPhysicalMaterial,
  noHighlight: true,
  standalone: true,
};
